package com.nervenets.web.controller.user;


import com.nervenets.web.controller.TokenParams;
import com.nervenets.web.enumeration.Gender;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
public class WeixinBindParams extends TokenParams {
    @ApiModelProperty(value = "微信返回的openId", required = true)
    @NotNull(message = "微信返回的openId不能为空")
    private String openId;
    @ApiModelProperty(value = "微信返回的unionId")
    private String unionId;
    @ApiModelProperty(value = "微信返回的nickname", required = true)
    @NotNull(message = "微信返回的nickname不能为空")
    private String nickname;
    @ApiModelProperty(value = "微信返回的headImgUrl", required = true)
    @NotNull(message = "微信返回的headImgUrl不能为空")
    private String headImgUrl;
    @ApiModelProperty(value = "微信返回的性别", required = true)
    private Gender gender;
}
